package com.learn.springcloud.hystrixturbineprovider.controller;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Time : 2018/8/7 17:32
 * @Version : 1.0
 */
@RestController
public class HystrixTurbineProvider {


    @RequestMapping("/hystrix/turbine/provider/say/hello/{name}")
    public String sayHello(@PathVariable String name){
        return "hello, " + name;
    }

    @RequestMapping("/hystrix/turbine/provider/who/are/you/{name}")
    public String whoareyou(@PathVariable String name){
        return "i am " + name;
    }
}
